package com.he.hsdyc.common;

import com.he.hsdyc.common.enums.LoginEnum;

public class LoginExpection extends RuntimeException {
    private String code;
    private String message;

    public LoginExpection() {

    }

    public LoginExpection(String message){
        super(message);
    }

    public LoginExpection(String code, String message) {
        super(message);
        this.code = code;
    }

    public LoginExpection(LoginEnum loginEnum) {
        super(loginEnum.getMessage());
        this.code = loginEnum.getCode();
    }

   /* public String getCode() {
        return code;
    }*/


}
